﻿@using Resources;
<script type="text/javascript" src="@Url.Content(@properties.personaJS)"></script>
<script type="text/javascript">
    $(function () {
        setAutoAyudaInstitucion("#nIdeIntitutoBene", "#nIdeCodPaisDocBene", "#nIdeTipoDocumBene", "#nIdeNumeDocumBene", "#vNombresInstiBene", "/AutoAyuda/ListaInstitucionAuto", "1");
        setAutoAyudaInstitucion("#nIdeIntitutoBene", "#nIdeCodPaisDocBene", "#nIdeTipoDocumBene", "#vNombresInstiBene", "#nIdeNumeDocumBene", "/AutoAyuda/ListaInstitucionAuto", "2");
    });
</script>
<div id="divDatosBeneficios">@RenderPage("../../Shared/ROBeneficios.cshtml")</div>
<fieldset style="width: 850px;">
    <legend><span>Beneficios Anteriores</span></legend>
    <table>
            <tr>
                <td>País Emisor<span class="asterisco">(*)</span></td>
                <td>Tipo documento<span class="asterisco">(*)</span></td>
                <td>Número documento<span class="asterisco">(*)</span></td>
                <td>Razón social de la institución<span class="asterisco">(*)</span></td>
                <td colspan="2">&nbsp;</td>
                <td rowspan="4"><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registraDatosBeneficioMante(this,'#divDatosBeneficios');"/></td>
            </tr>
            <tr>
                <td>@Html.DropDownList("nIdeCodPaisDocBene", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor, "--Seleccione--")</td>
                <td>@Html.DropDownList("nIdeTipoDocumBene", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--")</td>
                <td>@Html.TextBox("nIdeNumeDocumBene", null, new { style = "width:100px;", maxlength = 120 })</td>
                <td colspan="3">@Html.TextBox("vNombresInstiBene", null, new { style = "width:380px;", maxlength = 120 })<input type="hidden" id="nIdeIntitutoBene" /><img src="@Url.Content("~/images/empresa.png")" class="lupita2" onclick="javascript: addPersonaJuridicaPop('2',this);" /><img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="LISTAR INSTITUCION" onclick="javascript:listarIntitucion('1','#divDatosPopPup','#vNombresInstiBene','#nIdeIntitutoBene','#nIdeCodPaisDocBene','#nIdeTipoDocumBene','#nIdeNumeDocumBene');" /></td>
            </tr>
            <tr>
                <td>Tipo de beneficio<span class="asterisco">(*)</span></td>
                <td>Año del beneficio<span class="asterisco">(*)</span></td>
                <td>Costo del programa<span class="asterisco">(*)</span></td>
                <td>Nombre del programa / Concepto<span class="asterisco">(*)</span></td>
                <td>% de beca</td>
                <td>% credito IPFE</td>
            </tr>
            <tr>
                <td>@Html.DropDownList("nIdeTipoBene", (IEnumerable<SelectListItem>)ViewBag.TipoBeneficios, "--Seleccione--")</td>
                <td><input type="text" id="nAnioBene" name="nNombInst" style="width: 50px;" /></td>
                <td><input type="text" id="nCostoBene" name="nNombInst" style="width: 50px;" /></td>
                <td>@Html.DropDownList("nIdeConceptoBene", (IEnumerable<SelectListItem>)ViewBag.ConceptoPrograma, "--Seleccione--")</td>
                <td><input type="text" id="nPorceBeca" name="nNombInst" style="width: 50px;" /></td>
                <td><input type="text" id="nPorceCredito" name="nNombInst" style="width: 50px;" /></td>
            </tr>
    </table>
</fieldset>
